import request from '@/utils/request'

/*
 * 请批
 */

// 请批首页
export function approveIndex(params) {
  return request({
    url: 'approve_apply/index',
    method: 'GET',
    params
  })
}

// 请批添加
export function approveAdd(data) {
  return request({
    url: 'approve_apply/add',
    method: 'POST',
    data:data
  })
}

// 请批详情
export function approveDetail(params) {
  return request({
    url: 'approve_apply/edit',
    method: 'GET',
    params
  })
}

// 请批编辑
export function approveEdit(option) {
  return request({
    url: 'approve_apply/edit',
    method: 'POST',
    data: option
  })
}

// 删除 delete
export function approveDelete(option) {
  return request({
    url: 'approve_apply/delete',
    method: 'POST',
    data: option
  })
}

// 会议审批
export function approve_metting_examine(option) {
  return request({
    url: 'approve_apply/metting_examine',
    method: 'POST',
    data: option
  })
}

// 院长审批
export function approve_admin_examine(option) {
  return request({
    url: 'approve_apply/admin_examine',
    method: 'POST',
    data: option
  })
}

// 文宣审批
// 请批首页
export function approveIndex_advert(params) {
  return request({
    url: 'approve_advert/index',
    method: 'GET',
    params
  })
}

// 请批添加
export function approveAdd_advert(data) {
  return request({
    url: 'approve_advert/add',
    method: 'POST',
    data:data
  })
}

// 请批详情
export function approveDetail_advert(params) {
  return request({
    url: 'approve_advert/edit',
    method: 'GET',
    params
  })
}

// 请批编辑
export function approveEdit_advert(option) {
  return request({
    url: 'approve_advert/edit',
    method: 'POST',
    data: option
  })
}

// 删除 delete
export function approveDelete_advert(option) {
  return request({
    url: 'approve_advert/delete',
    method: 'POST',
    data: option
  })
}

// 会议审批
export function approve_metting_examine_advert(option) {
  return request({
    url: 'approve_advert/metting_examine',
    method: 'POST',
    data: option
  })
}

// 院长审批
export function approve_admin_examine_advert(option) {
  return request({
    url: 'approve_advert/admin_examine',
    method: 'POST',
    data: option
  })
}

// 公示审批
// 请批首页
export function approveIndex_public(params) {
  return request({
    url: 'approve_public/index',
    method: 'GET',
    params
  })
}

// 请批添加
export function approveAdd_public(data) {
  return request({
    url: 'approve_public/add',
    method: 'POST',
    data:data
  })
}

// 请批详情
export function approveDetail_public(params) {
  return request({
    url: 'approve_public/edit',
    method: 'GET',
    params
  })
}

// 请批编辑
export function approveEdit_public(option) {
  return request({
    url: 'approve_public/edit',
    method: 'POST',
    data: option
  })
}

// 删除 delete
export function approveDelete_public(option) {
  return request({
    url: 'approve_public/delete',
    method: 'POST',
    data: option
  })
}

// 会议审批
export function approve_metting_examine_public(option) {
  return request({
    url: 'approve_public/metting_examine',
    method: 'POST',
    data: option
  })
}

// 院长审批
export function approve_admin_examine_public(option) {
  return request({
    url: 'approve_public/admin_examine',
    method: 'POST',
    data: option
  })
}
